home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / tutor / dosguide.exe / HELPDOS.ZIP / %0-%9.HLP next >
Text File  |  1985-09-03  |  1KB  |  32 lines

  1. -----------------  %0-%9  - Batch File Replaceable Parameters  -----------------
  2.  
  3. Replaceable Parameters, %0 - %9, allow you to pass information to a batch file.
  4.  
  5. FORMAT:   %n
  6.  
  7. REMARKS:
  8.  
  9.    n - is in the range 0-9.
  10.  
  11.    A maximum of ten replaceable parameters may be used at one time.  Replaceable
  12.    parameters are assigned to the characters typed in after the name of a batch
  13.    file.  %0 is set, by default, to the name of the Batch File being executed.
  14.    Parameters must be separated by one or more blanks.
  15.  
  16. EXAMPLE:
  17.  
  18. The Batch File below is named TYPEPRT.BAT:
  19.  
  20.           TYPE %1
  21.           PRINT %2
  22.  
  23. When this Batch File is run, you pass two values to it.  Suppose you want to
  24. TYPE the contents of the file FILEONE and PRINT the contents of FILETWO.  You
  25. would enter:
  26.  
  27.           TYPEPRT FILEONE FILETWO
  28.  
  29. %1 will be replaced with FILEONE and %2 will be replaced with FILETWO.  Thus
  30. the TYPE command, when executed, will be TYPE FILEONE.  The PRINT command, when
  31. executed, will be PRINT FILETWO.
  32.